<?php
$thegb = $this->app->getEDO()->fetch($this->entity->parent_id, 'ent_guestbook');

print "<div class=\"guestbook_post\">\n";

print "<div class=\"header\">\n";

print date($this->entity->dateformat, $this->entity->date_created);

print " -- ";
if ($this->entity->email AND $thegb->askemail) {
    print "<a href=\"mailto:" . $this->entity->email . "\">";
}

print $this->entity->poster;
if ($this->entity->email AND $thegb->askemail) {
    print "</a>";
}

if ($this->entity->www AND $thegb->askwww) {
    print ", ";
    print "<a target=\"_blank\" href=\"" . $this->entity->www . "\">";
    print $this->entity->www;
    print "</a>";
}

print "</div>\n";
print "<div class=\"message\">\n";

$coll = new LED_entity_Collection(0, null, $this->app->getLangid(), 2, $this->entity->id, 40);
print $coll->render('retail');

print "</div>\n";
print "</div>\n";

